#! /usr/bin/env python
import rospy
# from std_msgs import String
from std_msgs.msg import String

def doMsg(msg):
    rospy.loginfo("I Receive data:%s",msg.data)

if __name__ == "__main__":
    rospy.init_node("D_receive")
    sub = rospy.Subscriber("che",String,doMsg,queue_size=10)
    rospy.spin()